/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.usfirst.frc675.Fred;

import java.util.Vector;

/**
 *
 * @author derrickNB
 */
public class DoubleArray2d {
    private Vector v;
    
    public DoubleArray2d(){ 
        v= new Vector();
    }
    
    public void add(DoubleArray1d row){
        v.addElement(row);
    }
    
    public double get(int row,int column){
        
       DoubleArray1d rowArray = (DoubleArray1d) v.elementAt (row);
       double results = rowArray.get(column);
       return results;
    }
     
    public String toString(){
        String result="Two Dimenisonal Array:";
        for(int row=0; row<v.size(); row++){
            result = result + "\n " + v.elementAt(row).toString();
        }
        return result;
    }
} 
